//
//  NFSCommonTableViewCell.m
//  NeedForSpeed
//
//  Created by dlios on 15/10/16.
//  Copyright (c) 2015年 Avenger. All rights reserved.
//

#import "NFSCommonTableViewCell.h"

#import "BaseHeader.h"
@implementation NFSCommonTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.display = [[UIImageView alloc]initWithFrame:CRM(10, 5, 95, 70)];
        [self.contentView addSubview:self.display];
        
        self.theTitle = [[UITextView alloc]initWithFrame:CRM(110, 0, 240, 45)];
        self.theTitle.font = [UIFont systemFontOfSize:14];
        self.theTitle.userInteractionEnabled = NO;
        
        
        [self.contentView addSubview:self.theTitle];

        
    }
    return self;

}

-(void)getDataByModel:(NFSRecommendModel *)model
{
    [self.display sd_setImageWithURL:[NSURL URLWithString:model.smallpic]];
    self.titleLabel.text = model.title;
    self.theTitle.text = model.title;
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
